package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolExpressScan;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressScanParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressScanResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 扫码分配 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-03-28
 */
public interface ToolExpressScanMapper extends BaseMapper<ToolExpressScan> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2022-03-28
     */
    List<ToolExpressScanResult> customList(@Param("paramCondition") ToolExpressScanParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2022-03-28
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolExpressScanParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-03-28
     */
    Page<ToolExpressScanResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolExpressScanParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-03-28
     */
    Page<ToolExpressScanResult> findPageWellenBySpec(@Param("page") Page page, @Param("paramCondition") ToolExpressScanParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2022-03-28
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolExpressScanParam paramCondition);

	boolean saveBatchList(@Param("list")List<ToolExpressScanParam> list);

	void deleteBySpec(@Param("paramCondition")ToolExpressScanParam scanParam);

	List<ToolExpressScanResult> findListBySpec(@Param("paramCondition")ToolExpressScanParam param);

	ToolExpressScanResult findBySpec(@Param("paramCondition")ToolExpressScanParam param);

	void updateBySpec(@Param("paramCondition")ToolExpressScanParam toolExpressScanParam);

	void updateArrangeBySpec(@Param("paramCondition")ToolExpressScanParam scanUpdate);

}
